<!--登陆页面-->
<?php 
//引入数据库
$data=include "./data.php";
session_start();
 ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>欢迎登陆</title>
	<style type="text/css">
		*{
			padding: 0;
			margin: 0;
		}
		body{
			width: 1200px;
			height: 665px;
			background: url(image/02.jpg) no-repeat -200px -100px;
			position: relative;
		}
		#box{
			width: 500px;
			height: 160px;
			/*border: 1px solid red;*/
			position: absolute;
			bottom:40px;
			left: 500px;
			background:#100805;
			opacity: 0.8;
		}
		#out{
			width: 130px;
			height: 30px;
			position: absolute;
			bottom: 50px;
			right: 50px;
			/*border: 1px solid red;*/ 
		}
		#out a{
			font-size: 25px;
			text-align: center;
			font-family: "微软雅黑";
			color:white;
			text-decoration: none;
		}
		#out a:hover{
			text-decoration: underline;
			color: red;
		}
		#box span:hover{
			color: #C81623;
			text-decoration: underline;
		}
	</style>
</head>
<body>

		<?php if(isset($_SESSION['id'])){ ?>
	<div id="box">
		<p style="width: 500px;height: 80px;font-size: 30px;font-size:40px;line-height: 80px;text-align: center;font-family: '微软雅黑';color: red;">亲爱的<?php echo $_SESSION['name']?></p><br />
		<p style="width: 500px;height: 80px;line-height:50px;font-size:50px;text-align: center;font-family: '微软雅黑';color: deepskyblue;letter-spacing: 12px;">欢迎回到战场!</p>
	</div>
	<div id="out">
		<a href="./out.php">退出登录</a>
	</div>	
	<?php }else{?>
	<div id="box">
		<p style="width:270px;height: 40px;position: absolute;top: 20px;left: 120px;color: cornflowerblue;font-family: '微软雅黑';font-size:23px;">对不起，您还没有登录~!</p>
		<a href="./index.php" style="display:block;width: 250px;height: 160px;text-align: center;line-height: 200px;float: left;text-decoration: none;font-size: 25px;font-family: '微软雅黑';color: white;"><span>登陆</span></a>
		<a href="./register.php" style="display:block;width: 250px;height: 160px;text-align: center;line-height: 200px;float: left;text-decoration: none;font-size: 25px;font-family: '微软雅黑';color: white;"><span>注册</span></a>
	</div>
		<?php }?>
	
</body>
</html>





